﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="PersonVstSrh.aspx.cs" Inherits="App_Input_PersonVstSrh" Title="上门拜访" %>
<%@ Register TagPrefix="shpm" TagName="TipBar" Src ="~/App/Input/SaleProcessTipBar.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <div id="container">
            <div id="title">
                <ul>
                    <li id="tag1"  style="display:none;">
                        <asp:LinkButton ID="LinkButton1" OnCommand="lnkTab_Command" CommandName="btn0" runat="server" Enabled="false"><span>新建</span></asp:LinkButton>
                    </li>
                    <li id="tag2">
                        <asp:LinkButton ID="LinkButton2" OnCommand="lnkTab_Command" CommandName="btn1" runat="server"
                            CssClass="selectli" OnClientClick="return false;"><span class="selectspan">销售管理</span></asp:LinkButton>
                    </li>
                    <li id="tag4">
                        <asp:LinkButton ID="LinkButton4" OnCommand="lnkTab_Command" CommandName="btn3" runat="server"><span>购卡管理</span></asp:LinkButton>
                    </li>
                    <li id="tag3">
                        <asp:LinkButton ID="LinkButton3" OnCommand="lnkTab_Command" CommandName="btn2" runat="server"><span>入住信息</span></asp:LinkButton>
                    </li>
                    <li id="Li6">
                        <asp:LinkButton ID="LinkButton9" OnCommand="lnkTab_Command" CommandName="btn6" runat="server"><span>资格审核</span></asp:LinkButton>
                    </li>
                    <li id="tag5">
                        <asp:LinkButton ID="LinkButton5" OnCommand="lnkTab_Command" CommandName="btn4" runat="server"><span>入住管理</span></asp:LinkButton>
                    </li>
                </ul>
            </div>
            <div id="content" class="content1">
                <shpm:TipBar runat="server" ID="tipBar" />
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6" style="height: 17px">

                            <script language="javascript">
                        (new TitleBar('SearchBar', '客户信息')).showBar();
                            </script>

                        </td>
                    </tr>
                    </table>
                    <table class="table_border_line" style="background:ffffff">
                        <tr>
                            <td style="white-space:nowrap; width:20%; height:25px;">
                                客户姓名</td>
                            <td style="white-space:nowrap; width:80%">
                                <asp:Label ID="lblName" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="white-space:nowrap;width:20%; height:25px;">
                                客户联系电话</td>
                            <td style="white-space:nowrap; width:80%">
                                <asp:Label ID="lblTel" runat="server"></asp:Label></td>
                        </tr>
                    </table>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6" style="height: 17px">

                            <script language="javascript">
                        (new TitleBar('SearchBar', '上门拜访客户信息')).showBar();
                            </script>

                        </td>
                    </tr>
                    <tr>
                    <td>
                        <asp:GridView ID="viewSrhRst" runat="server" AutoGenerateColumns="False" CssClass="GridView_table"
                            DataKeyNames="RowId" OnRowDataBound="viewSrhRst_RowDataBound" OnSelectedIndexChanged="viewSrhRst_SelectedIndexChanged">
                            <Columns>
                                <asp:TemplateField HeaderText="详细编号" Visible="False">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RowId") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemStyle CssClass="GridView_item_left" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("RowId") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="拜访次数" DataField="RelationCount">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="拜访目的" DataField="RelationIntention">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="拜访方法" DataField="RelationMethod">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                </asp:BoundField>
                                <asp:BoundField DataFormatString="{0:yyyy/MM/dd}" HeaderText="预计拜访时间"
                                    HtmlEncode="False" DataField="BespeakDate">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                </asp:BoundField>
                                <asp:BoundField DataFormatString="{0:yyyy/MM/dd}"
                                    HeaderText="实际拜访时间" HtmlEncode="False" DataField="FactDate">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="安排下次上门"
                                    HtmlEncode="False" DataField="RelationVisiting2">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                </asp:BoundField>
                                <asp:CommandField ButtonType="Image" HeaderText="详细" SelectImageUrl="~/images/info.gif"
                                    SelectText="详细" ShowSelectButton="True">
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                    <ItemStyle CssClass="GridView_item_center" />
                                </asp:CommandField>
                            </Columns>
                        </asp:GridView>
                    </td>
                    </tr>
                </table>
                <table class="table_border_line">
                <tr>
                <td style="text-align:center;">
                    <asp:Button ID="btnAdd" runat="server" CssClass="button" Text="添 加" Width="89px" OnClick="btnAdd_Click" />&nbsp;<asp:Button
                        ID="btnBack" runat="server" CssClass="Button" OnClick="btnBack_Click" Text="返 回"
                        Width="89px" /></td>
                </tr>
                </table>
            </div>
</asp:Content>
